<div class="content-primary">
	<nav>		
		<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
			<li data-role="list-divider">Rooms in <%= @company.name %></li>
			<% if @rooms.size > 0 %>
				<% @rooms.each do |room| %>
						<% if room.computers.size == 0 %>
							<li><%= link_to "#{room.code} (No computers)", :action => :showComputers, :id => room.id%></li>
						<% else %>
							<% if room.computers.size > 1 %>
					    		<li><%= link_to "#{room.code} (#{room.computers.size} computers)", :action => :showComputers, :id => room.id%></li>
							<% else  %>
								<li><%= link_to "#{room.code} (#{room.computers.size} computer)", :action => :showComputers, :id => room.id%></li>
							<% end %>
						<% end %>
				<%end%>
			<% else %>
				<li>No rooms</li>
			<% end %>
		</ul>
	</nav>
</div>

